package com.example.demo.service;

import com.example.demo.dto.HealthDTO;
import com.example.demo.entity.BedType;
import com.example.demo.entity.Health;
import com.example.demo.entity.Nation;
import com.example.demo.entity.OldMan;

import java.util.List;
import java.util.Map;

public interface OldManService {
    int addOldman(Map<String, String> map);

    List<OldMan> findAllOldman();

    List<OldMan> search(String val);

    int updateOldman(Map<String, String> map);

    List<BedType> findBedType();

    List<Nation> findNationType();

    int addHealth(Map<String,String> map);

    List<HealthDTO> findAllHealth(Integer startNum, Integer rows);

    List<HealthDTO> showToPage(Integer startNum,Integer rows);

    int findTotal();

    int updateHealth(Map<String, String> map);

    int delHealthById(Integer hid);
}
